<template>
  <h1>El-分栏布局组件</h1>
  <el-row :gutter="30">
    <el-col :span="6" style="background-color: skyblue">测试1</el-col>
    <el-col :span="6" style="background-color: #00FF00">测试2</el-col>
    <el-col :span="6" style="background-color: skyblue">测试3</el-col>
    <el-col :span="6" style="background-color: #00FF00">测试4</el-col>
  </el-row>
  <h3>两张图</h3>
  <el-row>
    <el-col :span="12">
      <img src="2024.png" style="width: 100%;">
    </el-col>
    <el-col :span="12">
      <img src="2024.png" style="width: 100%;">
    </el-col>
  </el-row>

  <h3>六张图</h3>
  <el-row>
    <el-col :span="4">
      <img src="2024.png" style="width: 100%;">
    </el-col>
    <el-col :span="4">
      <img src="2024.png" style="width: 100%;">
    </el-col>
    <el-col :span="4">
      <img src="2024.png" style="width: 100%;">
    </el-col>
    <el-col :span="4">
      <img src="2024.png" style="width: 100%;">
    </el-col>
    <el-col :span="4">
      <img src="2024.png" style="width: 100%;">
    </el-col>
    <el-col :span="4">
      <img src="2024.png" style="width: 100%;">
    </el-col>
  </el-row>
  <h3>三张图 1:2:3</h3>
  <el-row>
    <el-col :span="4">
      <img src="2024.png" style="width: 100%;">
    </el-col>
    <el-col :span="8">
      <img src="2024.png" style="width: 100%;">
    </el-col>
    <el-col :span="12">
      <img src="2024.png" style="width: 100%;">
    </el-col>
  </el-row>

  <h3>等分8列，每列内容为数字,一次为1~8</h3>
  <el-row>
  <!--Element UI 的栅格系统默认将一行分成 24 列。
  :span="12"：表示该列占据 24 列中的 12 列，即占一半的宽度。-->
    <el-col :span="3" style="background-color: skyblue">1</el-col>
    <el-col :span="3" style="background-color: #00FF00">2</el-col>
    <el-col :span="3" style="background-color: skyblue">3</el-col>
    <el-col :span="3" style="background-color: #00FF00">4</el-col>
    <el-col :span="3" style="background-color: skyblue">5</el-col>
    <el-col :span="3" style="background-color: #00FF00">6</el-col>
    <el-col :span="3" style="background-color: skyblue">7</el-col>
    <el-col :span="3" style="background-color: #00FF00">8</el-col>
  </el-row>
  <el-row :gutter="10">
    <el-col :span="3" v-for="item in 8">{{item}}</el-col>
  </el-row>

  <h3>列偏移</h3>
  <el-row>
    <el-col :span="20" :offset="2">
      <img src="2024.png" style="width: 100%;">
    </el-col>
  </el-row>
  <h3>列偏移2:占12列且居中</h3>
  <el-row>
    <el-col :span="12" :offset="6">
      <img src="2024.png" style="width: 100%;">
    </el-col>
  </el-row>

  <!-- 布局嵌套 -->
  <el-row>
    <el-col :span="12" style="border: 5px solid skyblue">左侧</el-col>
    <el-col :span="12" style="border: 5px solid seagreen">
      <el-row>
        <el-col :span="8" style="border: 5px solid saddlebrown;">111</el-col>
        <el-col :span="8" style="border: 5px solid seashell;">222</el-col>
        <el-col :span="8" style="border: 5px solid mediumturquoise;">333</el-col>
      </el-row>
    </el-col>
  </el-row>
</template>

<script setup>

</script>

<style scoped>

</style>